// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "C14TestActor.generated.h"

UCLASS()
class UE5TRICKSPROJECT_API AC14TestActor : public AActor
{
	GENERATED_BODY()
	
public:	
	// Sets default values for this actor's properties
	AC14TestActor();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	

	// Called every frame
	virtual void Tick(float DeltaTime) override;

	/**
	 * @brief 进入beginplay时打印信息到屏幕
	 */
	void PrintMessageToScreen();
	
	/**
	 * @brief 要打印到屏幕上的文本
	 */
	UPROPERTY(BlueprintReadWrite, Category="TEST")
	FString MessageContent = "Hello C++ 14";

	auto* DecltypeReturnValue();
	
	/**
	 * @brief 测试for-each迭代器方式
	 */
	void TestForeachIterator();
};
